package com.aixx.springcloud.alibaba.service;

import com.aixx.springcloud.alibaba.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author shkstart
 * @create 2021-02-18 0:21
 */
@FeignClient("seata-account-service")
public interface AccountService {
//减余额
    @PostMapping("account/decrease")
    CommonResult  decrease(@RequestParam("userId")Long userid , @RequestParam("money") BigDecimal money);
}
